<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'menu-form',
	'enableAjaxValidation'=>false,
)); ?>

	<div class="row">
		<label>Nội dung</label>
		<?php echo $form->textField($model,'NoiDung',array('size'=>60,'maxlength'=>200,'class'=>'text-input medium-input')); ?>
		<?php echo $form->error($model,'NoiDung', array('class'=>'input-notification error png_bg')); ?>
	</div><br>

	<div class="row">
		<label>Đường dẫn</label>
		<?php echo $form->textField($model,'Link',array('size'=>60,'maxlength'=>200,'class'=>'text-input medium-input')); ?>
		<?php echo $form->error($model,'Link', array('class'=>'input-notification error png_bg')); ?>
	</div><br>

	
	<div class="row">
		<label>Mô tả</label>
		<?php echo $form->textArea($model,'MoTa',array('rows'=>6, 'cols'=>50, 'class'=>'text-input textarea wysiwyg')); ?>
		<?php echo $form->error($model,'MoTa', array('class'=>'input-notification error png_bg')); ?>
	</div><br>
	
	<table width="210" border="0">
	   	<tr>
	   		<?php  if (menu::model()->isset_data() == true){?>
				<td style="width: 180px;"><label>Menu cha</label></td>
			<?php }?>
	    	<td style="width: 100px;"><label>Thứ tự</label></td>
	        <td><label>Trạng thái</label></td>
	   	</tr>
	   	<tr>
	   		<?php  if (menu::model()->isset_data() == true){?>
	   		<td>
	   			<?php echo $form->dropDownList($model,'Menu_Id', array(""=>"--Chọn menu cha--",menu::model()->get_list_data()));?>
	   		</td><?php }?>
	   		<td>
	   			<?php echo $form->dropDownList($model,'STT',
					array(
						0=>'0',
						1=>'1',
						2=>'2',
						3=>'3',
						4=>'4',
						5=>'5',
						6=>'6',
						7=>'7',
						8=>'8',
						9=>'9',
						10=>'10',
						)
					); 
				?>
	   		</td>
	   		<td>
	   			<?php if ($model->isNewRecord)
			{
				echo $form->checkBox($model,'TrangThai', array('checked'=>true)); 
			}else 
				echo $form->checkBox($model,'TrangThai');?>
	   		</td>
	   	</tr>
	</table>
	<br>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '  Tạo mới  ' : '  Cập nhật  ', array('class'=>'button')); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->